# 普通函数
# def my_add(a, b):
#     return a + b
#
#
# c = my_add(2, 4)
#
# print(c)


# 默认值函数
# def my_add2(a=8, b=4):
#     return a * b
# print(my_add2(2, 7))

# 字典 (json)
# j = {"name": "张三", "age": 18}
# for k, v in j.items():
#     print('%s=%s' % (k, v))


# def print_json(**parm):
#     for k, v in parm.items():
#         print('%s=%s' % (k, v))
#
# j2 = {"name": "张三2", "age": 118}
# print_json(**j2)

n1 = 10


def f1():
    # global n1
    # print(n1)
    n1 = 90
    print(n1)

f1()
print(n1)
